﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Modeling;

namespace DSLFactory.VSCTDesigner
{
    partial class Combo
    {
        public IDSymbol GetIDListSymbol()
        {
            GuidSymbol guid = this.CommandTable.Symbols.FirstOrDefault(s => s.Name == this.Guid);
            if( guid != null )
                return guid.IDSymbols.FirstOrDefault(i => i.Name == this.IdCommandList);
            return null;
        }
    }
}
